﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加图书</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        form {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            width: 300px;
        }
        fieldset {
            border: none;
            padding: 0;
        }
        legend {
            font-size: 18px;
            margin-bottom: 10px;
            color: #555;
        }
        table {
            width: 100%;
        }
        tr {
            border-bottom: 1px solid #ddd;
        }
        td {
            padding: 10px;
        }
        td label {
            display: block;
            margin-bottom: 5px;
            color: #555;
        }
        input[type="text"] {
            width: 100%;
            padding: 8px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        input[type="submit"] {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            border: none;
            border-radius: 4px;
            color: white;
            font-size: 1em;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<form method="post">
    <fieldset>
        <legend>添加图书</legend>
        <table>
            <tr>
                <td><label>图书名称</label></td>
                <td><input type="text" name="bookname" /></td>
            </tr>
            <tr>
                <td><label>作者</label></td>
                <td><input type="text" name="author" /></td>
            </tr>
            <tr>
                <td><label>出版社</label></td>
                <td><input type="text" name="press" /></td>
            </tr>
            <tr>
                <td><label>库存</label></td>
                <td><input type="text" name="stock" /></td>
            </tr>
        </table>
        <input type="submit" value="添加图书" />
    </fieldset>
</form>
</body>
</html>